package com.seari.service;

import java.util.List;

import javax.sound.sampled.Line;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.bean.DeviceTypeAttr;
import com.seari.mapper.DeviceTypeAttrMapper;
import com.seari.pojo.QueryDeviceList;

@Service("deviceTypeAttrService")
public class DeviceTypeAttrServiceImpl implements DeviceTypeAttrService
{
	@Autowired
	private DeviceTypeAttrMapper dtm;
	QueryDeviceList qdl = new QueryDeviceList();
	// String line = (String) req.getSession().getAttribute("LineID");

	public int deleteAttrByTypeId(int tid, String line)
	{
		// TODO Auto-generated method stub
		return dtm.deleteAttrByTypeId(tid, line);
	}

	public int addDeviceAttr(List<DeviceTypeAttr> attrs, String lineID)
	{
		// TODO Auto-generated method stub
		return dtm.addDeviceAttr(attrs, lineID);
	}

}
